package com.i2863.recnews.common;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.support.PropertiesLoaderUtils;

import java.io.IOException;
import java.util.Properties;


public class Constant{
	
	private static final Logger log = LoggerFactory.getLogger(Constant.class);

	public static  String UCENTER_URL;


    static {
    	Properties properties = null;
    	try {
			properties = PropertiesLoaderUtils.loadProperties(new ClassPathResource("config.properties"));
			UCENTER_URL = properties.getProperty("ucenter.url");
		} catch (IOException e1) {
			log.error("加载配置文件出现异常", e1);
		}
    }


}

